package com.thm.tfast.modules.sys.model.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName UserLoginDto
 * @Author THM
 * @Date 2022/10/10 11:17
 * @Version 1.0
 * @Description 用户登录参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserLoginDto implements Serializable {
    private static final long serialVersionUID = -754866417744636786L;

    @ApiModelProperty(value = "用户名",required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码",required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码",required = true)
    @NotEmpty(message = "验证码不能为空")
    private String verCode;

    @ApiModelProperty(value = "当前验证码对应Key",required = true)
    @NotNull(message = "当前验证码key不能为空")
    private Long key;
}
